<?php

namespace Home\Controller;

use Think\Controller;

//公共验证控制器HomeCommonController
class HomeCommonController extends Controller
{

    // 空操作，404页面
    public function _empty()
    {
        header("HTTP/1.1 404 Not Found");
        header("Status: 404 Not Found");
        $this->display(get_tpl('404.html'));
    }

    protected function _initialize()
    {
        if (C('CFG_WEBSITE_CLOSE') == 1) {
            exit_msg(C('CFG_WEBSITE_CLOSE_INFO'));
        }
		
		$map['status'] = 1;
		$searchkey = M('search')->where($map)->order('num DESC')->limit(8)->select();
		//$this->assign('uid', $uid);
		$this->assign('searchkey', $searchkey);
		
    }

}
